<?php
//查询订单信息
require_once 'sign.php';

// $timestamp = 1719889433;
$timestamp = time();
// 开发者填入自己的小程序 app_id
$appId = "ttdd96ab2b42a07b6d01";
$nonceStr = randStr(10);
$keyVersion = "3";
$url = "/api/apps/trade/v2/query_order";
$data = json_encode([
    "order_id" => "MECPN7387704488192362792",
   
   
]);
$byteAuthorization = getByteAuthorization($url, $data, $appId, $nonceStr, $timestamp, $keyVersion);
$res = sign_post('https://developer.toutiao.com/api/apps/trade/v2/query_order', $byteAuthorization, $data);
echo $res;
exit;